import pandas as pd

file = "./train_unlabeled_id_half.tsv"

df = pd.read_csv(file, sep="\t")
df = df.sample(frac=0.5, random_state=42)   

df.to_csv("./train_unlabeled_id_quater.tsv", index=False, sep="\t")